#{extends 'main.html' /}

<h1>My Drafts</h1>

#{if flash.success}
		<p style="color:GREEN"> ${flash.success}</p>
		#{/if}
#{if drafts.size()==0}
<h1>No ideas saved as drafts</h1>
#{/if} #{else} #{list drafts, as:'draft'}
<a href="@{ProfileController.viewDraft(draft.id,userID)}">${draft.title}
	-Idea</a>
#{/list} #{/else} #{if draftRequests.size()==0}
<h1>No requests saved as drafts</h1>
#{/if} #{else} #{list draftRequests, as:'request'}
<a href="@{ProfileController.viewDraftRequest(request.id,userID)}">${request.title}
	-Request</a>
#{/list} #{/else}
